Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Ensures advanced configuration updates trigger wait for completion #2954

Conversation

EspenAlbert
Copy link
Collaborator

Description

Ensures advanced configuration updates trigger wait for completion

Link to any related issue(s): CLOUDP-293895

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

@EspenAlbert EspenAlbert marked this pull request as ready for review January 10, 2025 16:44
@EspenAlbert EspenAlbert requested a review from a team as a code owner January 10, 2025 16:44
_, _, err := connV220240530.ClustersApi.UpdateClusterAdvancedConfiguration(ctx, projectID, clusterName, &params20240530).Execute()
if err != nil {
return diag.FromErr(fmt.Errorf(errorConfigUpdate, clusterName, err))
}
}
if !reflect.DeepEqual(params, admin.ClusterDescriptionProcessArgs20240805{}) {
advancedConfigChanged = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about waiting in each change, similarly to TPF impl, potentially taking more time, but minimizing possible problems because of race conditions in Atlas?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, changed in d57f751

@EspenAlbert EspenAlbert merged commit ded9ade into master Jan 14, 2025
39 of 40 checks passed
@EspenAlbert EspenAlbert deleted the CLOUDP-293895_TestAccMockableAdvancedCluster_waitForAdvancedConfigUpdates branch January 14, 2025 10:08
lantoli added a commit that referenced this pull request Jan 16, 2025
* master:
  doc: Uses weekly option in cloud backup schedule documentation (#2963)
  chore: Bump tj-actions/verify-changed-files (#2965)
  chore: Bump srvaroa/labeler from 1.12.0 to 1.13.0 (#2966)
  chore: Bump peter-evans/create-pull-request from 7.0.5 to 7.0.6 (#2967)
  chore: Bump github.com/pb33f/libopenapi from 0.19.1 to 0.20.0 (#2968)
  chore: Bump github.com/zclconf/go-cty from 1.16.0 to 1.16.1 (#2969)
  fix: Updates test to use old schema for data sources in AWS provider configuration (#2962)
  chore: Uses backend default for zoneName to make tenantUpgrade pass on SDKv2 (#2952)
  chore: Refactors test checks to only run for TPF due to `[]` in SDKv2 for computed specs (#2955)
  chore: Ensures advanced configuration updates trigger wait for completion (#2954)
  chore: Remove usage of fixed 2024-08-05 version in cluster resource and ensure auto scaling mode is not impacted (#2918)
  chore: Updates CHANGELOG.md for #2953
  feat: Adds support for disabling Backup Compliance Policy on resource delete (#2953)
  chore: Improves Makefile help (#2958)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants